racing against the clock

Translations
гонка со временем
He was racing against the clock to finish the project before the deadline.
Он гнался со временем, чтобы закончить проект до срока.
Definitions
A situation in which someone is trying to complete a task or reach a goal before a deadline.